package model.components.nodes.node;

public class VirtualRouter extends VirtualNode
{	
	public static final String NAME_PREFIX = "VirtualRouter";

	public VirtualRouter( String networkName, int startingDate, int endingDate, int number, String operatingSystem, String virtualEnvironment, int cpu, int memory )
	{
		super( networkName, startingDate, endingDate, VirtualRouter.NAME_PREFIX, number, Node.ROUTER_TYPE, operatingSystem, virtualEnvironment, cpu, memory, Node.GREY_ROUTER, Node.GREEN_ROUTER, Node.YELLOW_ROUTER, Node.RED_ROUTER );
	}
	
	@Override
	public VirtualRouter getCopy()
	{
		VirtualRouter virtualRouter = new VirtualRouter( this.getNetworkName(), this.getStartingDate(), this.getEndingDate(), this.getNumber(), this.getOperatingSystem(), this.getVirtualEnvironment(), this.getCpu(), this.getMemory() );
		virtualRouter.setInitialNumber( this.getInitialNumber() );
		virtualRouter.setNamePrefix( this.getNamePrefix() );
		virtualRouter.setType( this.getType() );
		virtualRouter.setTimeStamp( this.getTimeStamp() );
		virtualRouter.setPhysicalNode( this.getPhysicalNode() );
		virtualRouter.setSelected( this.isSelected() );
		virtualRouter.setCpuUnitTimeUnitPrice( this.getCpuUnitTimeUnitPrice() );
		virtualRouter.setMemoryUnitTimeUnitPrice( this.getMemoryUnitTimeUnitPrice() );
		
		return virtualRouter;
	}

}
